//
//  MBCell.m
//  cell 单选
//
//  Created by MB__Lee on 2018/4/16.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBCell.h"

@interface MBCell()

@property (weak, nonatomic) IBOutlet UIButton *BTN;


@end


@implementation MBCell
- (IBAction)btn:(id)sender {
    if (_block) {
        _block();
    }
}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)changeBTNState{
    NSLog(@"-----");
    _BTN.selected = !_BTN.selected;
    
    _isSelected = _BTN.selected;
    
}

-(void)MBsetSelected{
    _BTN.selected = YES;
}
-(void)MBSetNoSelected{
    _BTN.selected = NO;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
